﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_CustomerChooseList.aspx.cs" Inherits="SaleSystem.ComPage.frm_CustomerChooseList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
    <div>
    <ext:PageManager runat="server" ID="PageManager1" />
    <ext:Toolbar runat="server" ID="toolbar1">
        <Items>
            <ext:Button runat="server" ID="bnSearch" Text="查询" Icon="Reload" Type="Submit" OnClick="bnSearch_Click" ></ext:Button>
            <ext:Button runat="server" ID="bn_Close" Icon="SystemClose" Text="关闭">
                            </ext:Button>                              
        </Items>    
    </ext:Toolbar> 
    <ext:Form runat="server" ID="Form2" EnableBackgroundColor="true" ShowHeader="false" BodyPadding="10px" ShowBorder="false">
        <Rows>
            <ext:FormRow>
            <Items>
            <ext:TextBox runat="server" ID="tb_Cust_Code" Label="客户编码" Width="200px"></ext:TextBox>
                    <ext:TextBox runat="server" ID="tb_Cust_Name" Label="客户名称" Width="200px"></ext:TextBox>
                    </Items>
            </ext:FormRow>
            <ext:FormRow>
             <Items>
                    <ext:DropDownList runat="server" ID="ddl_Cust_BData_Id" Label="客户类型" Width="200px" DataTextField="BData_Name" DataValueField="BData_Id" ></ext:DropDownList>
                    <ext:TextBox runat="server" ID="tb_Cust_IdentityCode" Label="身份证" Width="200px"></ext:TextBox>                    
                    </Items>
            </ext:FormRow>
                  <ext:FormRow>
             <Items>
                    <ext:TextBox runat="server" ID="tb_Cust_Tel1" Label="手机" Width="200px" ></ext:TextBox>
                    <ext:TextBox runat="server" ID="tb_Cust_Tel2" Label="电话" Width="200px"></ext:TextBox>                    
                    </Items>
            </ext:FormRow>
                    <ext:FormRow>
             <Items>
                    <ext:TextBox runat="server" ID="tb_Email" Label="Email" Width="200px"></ext:TextBox>
                    <ext:TextBox runat="server" ID="tb_QQ" Label="QQ" Width="200px"></ext:TextBox>                    
                    </Items>
            </ext:FormRow>
        </Rows>
    </ext:Form>
    <ext:Grid runat="server" ID="gv_List" EnableBackgroundColor="true" Title="客户信息列表"   IsDatabasePaging="true"
            DataKeyNames="Cust_Id,Cust_Name" EnableRowNumber="true" 
            onrowcommand="gv_List_RowCommand" AllowPaging="true" 
            onpageindexchange="gv_List_PageIndexChange" 
            onrowdatabound="gv_List_RowDataBound">
    <Columns>
        <ext:LinkButtonField ColumnID="OK" CommandName="OK" Text="确定" HeaderText="" Width="60px" /> 
    
        <ext:BoundField ColumnID="Cust_Code" DataField="Cust_Code" DataTooltipField="Cust_Code" HeaderText="客户编码" Width="100px" />
        <ext:BoundField ColumnID="Cust_Name" DataField="Cust_Name" DataTooltipField="Cust_Name" HeaderText="客户名称"   Width="150px"/>
        <ext:BoundField ColumnID="CustomerType" DataField="CustomerType" DataTooltipField="CustomerType" HeaderText="客户类型" Width="80px"/>
        <ext:BoundField ColumnID="Cust_Sex" DataField="Cust_Sex" DataTooltipField="Cust_Sex" HeaderText="性别" Width="50px"/>
        <ext:BoundField ColumnID="Cust_IdentityCode" DataField="Cust_IdentityCode" DataTooltipField="Cust_IdentityCode" HeaderText="身份证" Width="80px"/>
        <ext:BoundField ColumnID="Cust_Tel1" DataField="Cust_Tel1" DataTooltipField="Cust_Tel1" HeaderText="手机" Width="80px"/>
        <ext:BoundField ColumnID="Cust_Tel2" DataField="Cust_Tel2" DataTooltipField="Cust_Tel2" HeaderText="电话" Width="80px"/>
        <ext:BoundField ColumnID="Email" DataField="Email" DataTooltipField="Email" HeaderText="Email" Width="80px"/>
        <ext:BoundField ColumnID="QQ" DataField="QQ" DataTooltipField="QQ" HeaderText="QQ" Width="80px"/>
        <ext:BoundField ColumnID="Cust_ProfessionalName" DataField="Cust_ProfessionalName" DataTooltipField="Cust_ProfessionalName" HeaderText="职业" Width="80px" />
    
    </Columns>
    </ext:Grid>
    </div>
    <ext:Window runat="server" ID="win_Content" Popup="false" EnableIFrame="true"  EnableConfirmOnClose="true" Title="新增客户" IFrameUrl="about:blank" Target="Parent" IsModal="true" Width="500px" Height="500px"></ext:Window>
    </form>
</body>
</html>
